<?php
$this->breadcrumbs=array(
	t('Member','web')=>'/member/index/index',
	'店铺管理'=>'/member/registercompany',
	'我要开店'=>'/member/registercompany',
);?>

<div class="hr_12"></div>
<!--我要开店 start-->
<div class="setup_shop">
	<div class="setup_flow">
		<h2 class="fs_14">开店流程</h2>
		<ul class="c_f">
			<li class="step">
				<p class="flow"><span class="setup_bg flow_01"></span></p>
				<p class="pic"><span class="setup_bg pic_01"></span></p>
				<h3 class="fs_14">在线申请</h3>
				<p class="info">
					<?php echo  (empty($model))?'填写商家审核的相关信息':(($model->zoa_check==1)?'资料提交成功，请耐心等待！客服3个工作日内完成资料审核':(($model->zoa_check==3)?'对不起！你提交的资料未能审核通过':'填写商家审核的相关信息'))?>
				</p>
				<p class="<?php echo (empty($model))?'sign':'' ?>">
					<?php if(empty($model)&&empty(Yii::app()->user->comgroup)) echo CHtml::link('在线签约',array('register','step'=>'1'),array('class'=>'setup_bg sign_btn'))?>
					<?php if($model->zoa_check==3) echo CHtml::link('点击查看',array('register','step'=>'1'),array('class'=>'setup_bg sign_btn'))?>
				</p>
			</li>
			<li class="to"><span class="setup_bg next"></span></li>
			<li class="step">
				<p class="flow"><span class="setup_bg flow_02"></span></p>
				<p class="pic"><span class="setup_bg pic_02"></span></p>
				<h3 class="fs_14">签订服务协议</h3>
				<p class="info tl">签订家猫商家服务协议</p>
				<p class="sign"><?php if($model->zoa_check==2&&$model->zoa_accept==1) echo CHtml::link('签订服务协议',array('register','step'=>'2'),array('class'=>'setup_bg sign_btn'))?></p>
			</li>
			<li class="to"><span class="setup_bg next"></span></li>
			<li class="step">
				<p class="flow"><span class="setup_bg flow_03"></span></p>
				<p class="pic"><span class="setup_bg pic_03"></span></p>
				<h3 class="fs_14">缴纳保证金</h3>
				<p class="info tl"><?php echo  ($model->zoa_deposit_status==2&&$model->zoa_deposit_check==1)?"<span class='c_green3'>保证金审核中，请耐心等待！</span>":"审核通过后，需根据主营类目不同，缴纳相应的保证金额。"?></p>
				<p class=""><?php if($model->zoa_deposit_status==1&&$model->zoa_accept==2) echo CHtml::link('缴纳保证金',array('register','step'=>'3'),array('class'=>'setup_bg sign_btn'))?></p>
			</li>
			<li class="to"><span class="setup_bg next"></span></li>
			<li class="step">
				<p class="flow"><span class="setup_bg flow_04"></span></p>
				<p class="pic"><span class="setup_bg pic_04"></span></p>
				<h3 class="fs_14">开店成功</h3>
				<p class="info"><?php echo empty(Yii::app()->user->comgroup)?(empty($company)?'最后一步，填写商家资料':'重新登录才可以进入商家中心'):'店铺上线，开张大吉'?></p>
				<p class="<?php if(empty($company)||!empty(Yii::app()->user->comgroup)) echo "sign"?>">
					<?php if(!empty($company)){
						if(!empty(Yii::app()->user->comgroup)){
							echo CHtml::link('去商家中心',array('/company/index/index'),array('class'=>'setup_bg sign_btn'));
						}else{
							echo CHtml::link('重新登录',array('/home/user/logout'),array('class'=>'setup_bg sign_btn'));
						}
					}?>
					<?php if(empty($company)&&$model->zoa_deposit_check==2) echo CHtml::link('填写商家资料',array('register','step'=>'4'),array('class'=>'setup_bg sign_btn'))?>
				</p>
			</li>
		</ul>
	</div>
	<div class="setup_help">
		<h3>相关帮助：</h3>
		<ul class="line_22">
			<li><a class="c_06c" href="javascript:" title="">如何绑定已申请的企业支付宝帐号</a></li>
			<li><a class="c_06c" href="javascript:" title="">保证金有那些用途</a></li>
			<li><a class="c_06c" href="javascript:" title="">不同主营类目的保证金的金额列表</a></li>
			<li><a class="c_06c" href="javascript:" title="">开通网店之前需要做的准备</a></li>
			<li><a class="c_06c" href="javascript:" title="">如何装修网铺</a></li>
			<li><a class="c_06c" href="javascript:" title="">新店开张啦，如何推广网店</a></li>
		</ul>
	</div>
</div>
<!--我要开店 end-->
